package com.flyweight.po;

import com.flyweight.iface.Shape;

// 球体对象
public class Square implements Shape {

    private String color;

    private int x_axis_length;

    private int y_axis_length;

    public Square(String color) {
        this.color = color;
    }

    public void setX_axis_length(int x_axis_length) {
        this.x_axis_length = x_axis_length;
    }

    public void setY_axis_length(int y_axis_length) {
        this.y_axis_length = y_axis_length;
    }

    @Override
    public void draw() {
        System.out.println("Square: Draw() [Color : " + color +", x : " + x_axis_length +", y : " + y_axis_length + "]");
    }
}
